
@mixin position($align){  
  position: absolute;
  @if ($align == 'Y'){
    top: 50%;
    transform: translateY(-50%);
  } @else if($align == 'X'){
    left: 50%;
    transform: translateX(-50%);
  }@else{
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
.jx-container {
  .el-input__inner {
    font-size: 13px;
  }
}
.jx-btn{
  &.el-button {
    padding: 0 15px;
    height: 26px;
    line-height: 26px;
  }
}
.jx-form{
  .append-txt .el-input-group__append{
    border: 0;
    background: transparent;
    position: absolute;
    top: 0;
    right: 18px;
    line-height: 32px;
  }
  .el-input__icon{
    width: 15px;
  }
  .el-form-item__label{
    color: #999;
    text-align: right;
  }
  .el-input--small, .el-textarea{
    width: 70%;
  }
  .el-form-item__content img {
    max-width: 100px;
    max-height: 100px;
  }
  .el-select--small{
    width: 70%;
    .el-input--small{
      width: 100%;
    }
  }
  .el-input--small .el-input__inner{
    height: 32px;
    line-height: 32px;
  }
  .el-range-editor--small{
    &.el-input__inner {
      height: 32px;
      width: 69%;
    }
    .el-range__icon {
      line-height: 20px;
    }
    .el-range-separator {
      line-height: 20px;
    }
  }
  .el-cascader,.el-select {
    display: block;
  }
  .el-input__suffix {
    right: 10px;
  }
}
.jx-dialog{
  .el-dialog__headerbtn .el-dialog__close {
    background: url('/static/img/u436.png') no-repeat;
    background-size: cover;
    width: 30px;
    height: 30px;
    position: relative;
    top: -7px;
  }
  .el-icon-close:before {
    content: ''
  }
  .el-dialog__header {
    border-bottom: 1px solid #f2f2f2;
    padding: 15px 20px;
    text-align: left;
  }
  .el-dialog__body {
    padding: 20px 50px;
    overflow: hidden;
    overflow-y: scroll;
    max-height: 60vh;
    background: #fff;
  }
  .header-title {
    font-size: 17px;
    color: #333;
    font-weight: 600;
    img {
      width: 19px;
      height: 19px;
      position: relative;
      top: 3px;
      margin-right: 5px;
    }
  }
}
.jx-aside-select{
  .el-menu-item-group__title{
    padding: 0
  }
  .el-submenu__title {
    font-size: 12px;
    height: 46px;
    line-height: 46px;
  }
  .el-menu-item {
    font-size: 12px;
    height: 32px;
    line-height: 32px;
    color: #999;
    &.is-active{
      background: #ecf5ff;
    }
  }
}
.jx-table{
  padding-top: 30px;
  background: #fff;
  padding-bottom: 20px;
  border-radius: 0 0 6px 6px;
  text-align: left;
  .title {
    padding-bottom: 25px;
    .icon {
      margin-right: 5px;
      width: 20px;
      height: 20px;
      position: relative;
      top: 2px;
    }
    span {
      color: #0099FF;
      margin-left: 30px;
      cursor: pointer;
    }
  }
  /deep/ .el-table th.is-leaf {
    background: #F5FAFE;
    // background: rgba(64, 158, 255, 0.2);
    color: #333;
  }
  /deep/ .el-table__body-wrapper {
    border-bottom: 1px solid #ebeef5;
    tr:last-child {
      td {
        border-bottom: 0;
      }
    }
  }
  .vertical-border {
    border-right-width: 0 !important;
  }
  .vertical-border a {
    color: #0099FF;
    margin: 0 10px;
  }
  .add-new{
    float: right;
    text-align: center;
    .el-button{
      min-width: 80px;
      text-align: center;
      span{
        margin: 0;  
        color: #fff    
      }
    }
  }
  .el-table .cell {
    height: 23px;
  }
  .el-table::before {
    height: 0;
  }
  // .el-button--small, .el-button--small.is-round {
  //   padding: 0;
  // }
  .el-input--small .el-input__inner {
    text-align: left;
  }
  .el-table {
    .cell {
      .logo {
        width: 100px;
        vertical-align: middle;
      }
      .tb {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        vertical-align: middle;
      }
    }
  }
}
.jx-pagination {
  text-align: right;
  margin-top: 20px;
  .v-page--middle .v-page-total, .v-page--middle .v-page-li, .v-page--middle .v-page-select, .v-page--middle .v-page-goto, .v-page--middle .v-page-goto .v-page-goto-input {
    font-size: 12px;
    height: 26px;
    line-height: 26px;
  }
  .v-page--middle .v-page-li {
    min-width: 26px;
  }
  .v-page-li a {
    position: relative;
    top: -2px;
  }
}
.jx-select-container{
  color: #999;
  position: relative;
  border: 1px solid #d7d7d7;
  border-radius: 10px;
  padding: 28px 26px 13px;
  margin-top: 15px;
  .select-position{
    display: block;
    background: #fff;
    padding: 3px 8px;
    position: absolute;
    top: -10px;
    z-index: 1;
    &.select-title{
      left: 50px;
      font-weight: bold;
      color: #333
    }
    &.select-btn{
      right: 50px;
      cursor: pointer;
      color: #409EFF;
    }
  }  
  .select-content{
    padding: 10px 0;
    line-height: 26px;
    .item{
      margin-bottom: 15px;
      .form-content{
        margin-left: 70px;
      }
      .form-item{
        display: inline-block;
        margin-right: 8px;
        cursor: pointer;
        transition: .3s;
        &.active{
          color: #409EFF
        }
      }
      .el-input__icon{
        width: 15px;
      }
      // .el-input{
      //   width: 300px;
      // }
      .el-range-editor--small.el-input__inner{
        height: 26px;
        line-height: 26px;
      }
      .el-range-editor--small .el-range-separator{
        line-height: 14px;
        font-size: 12px;
      }
      .el-input--small .el-input__inner, .el-input__icon {
        height: 26px;
        line-height: 26px;
      }
      .item-inline{
        float: left;
        margin-right: 45px;
        margin-bottom: 8px;
        .el-input{
          width: 180px;
        }
      }
    }
  }
}
.jx-uploader{
  .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    height: 100px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
  .avatar-uploader-icon {
    font-size: 28px;
    color: #8c939d;
    width: 100px;
    height: 100px;
    line-height: 100px;
    text-align: center;
  }
  img {
    width: 100px;
    height: 100px;
  }
}
.jx-return-container{
  position: relative;
  font-size: 14px;
  line-height: 42px;
  border-bottom: 1px solid #DCDFE6;
  margin: -15px 0 0;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
  .icon-back{
    font-size: 28px;
    cursor: pointer;
    color: #DCDFE6;
    @include position('Y');
    background: url('/static//img/u197.png') no-repeat;
    width: 60px;
    height: 22px;
    background-size: contain;
    &::before {
      content: '';
    }
  }
  .cube-title{
    display: block;
    margin-left: 45px;
  }
}
.jx-tabs {
  padding: 20px 20px 0;
  .el-tabs__nav-wrap {
    border-bottom: 1px solid #e4e7ed;
  }
  .el-table {
    padding: 10px 0 50px;
  }
  .el-table td{
    border-bottom: 0;
  }
  .el-table .cell {
    height: 26px;
    span {
      margin-left: 5px;
    }
  }
  .el-tabs__item {
    padding: 0 50px;
  }
  .el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2) {
    padding-left: 50px;
  }
  .el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:last-child {
    padding-right: 50px;
  }
  .el-input {
    display: inline-block;
    width: 70%;
  }
  .el-input--small .el-input__inner {
    height: 25px;
    line-height: 25px;
    // text-align: center;
  }
  .jx-form {
    padding: 20px 0 50px;
  }
  .title {
    margin-top: 20px;
  }
}
.jx-tags {
  width: 70%;
  .vue-tags-input {
    max-width: 100%;
  }
  .ti-input {
    border-radius: 6px;
    border: 1px solid #dadada;
  }
  .ti-tag {
    background-color: #eee !important;
    color: #333 !important;
  }
  .ti-tag .ti-actions i {
    color: #0099FF;
  }
  .ti-new-tag-input-wrapper input:-moz-placeholder {
    color: #C0C4CC;
  }
  .ti-new-tag-input-wrapper input::-moz-placeholder {
    color: #C0C4CC;
  }
  .ti-new-tag-input-wrapper input:-ms-input-placeholder {
    color: #C0C4CC;
  }
  .ti-new-tag-input-wrapper input::-webkit-input-placeholder {
    color: #C0C4CC;
  }
}
.jx-img-table {
  .el-table .cell {
    height: auto;
    img {
      max-width: 60px;
      max-height: 60px;
    }
  }
}
